﻿<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>jQuery后相邻选择器示例</title>
        <script src="js/jquery-3.6.1.min.js"></script>
        <style>
            div {
                width: 100px;
				height:50px;
                border: 1px solid;
                margin: 10px;
				float:left;
            }
        </style>
    </head>
    <body>
        <h3>jQuery后相邻选择器示例</h3>
        <hr>
		<div id="test01">div id="test01"</div>
		<div>普通div元素，无id名称</div>
        <script>
            $(document).ready(function() {
                $("div#test01+div").css("border", "2px solid red");
            });
        </script>
    </body>
</html>

